package com.android.view.hqview;

public class IndexModel {

    public static final String MAJUST = "MA";
    public static final String BOLLJUST = "BOLL";
    /*MACD、KDJ、RSI、DMI、DMA、WR、PSY、CR、ARBR、CCI、BIAS*/

    public static final String IX_VOL = "VOL";
    public static final String IX_MACD = "MACD";
    public static final String IX_KDJ = "KDJ";
    public static final String IX_RSI = "RSI";
    public static final String IX_ADX = "ADX";
    public static final String IX_ATR = "ATR";
/*    public static final String IX_DMI = "DMI";
    public static final String IX_DMA = "DMA";
    public static final String IX_WR = "WR";
    public static final String IX_PSY = "PSY";
    public static final String IX_CR = "CR";
    public static final String IX_ARBR = "ARBR";
    public static final String IX_CCI = "CCI";
    public static final String IX_BIAS = "BIAS";*/

    public final static String[] ADJUSTTYPES = {MAJUST, BOLLJUST};
//    public final static String[] INDEXTYPES = {IX_MACD, IX_KDJ, IX_RSI, IX_DMI, IX_DMA, IX_WR, IX_PSY, IX_CR, IX_ARBR, IX_CCI, IX_BIAS};
    public final static String[] INDEXTYPES = {IX_VOL,IX_MACD, IX_KDJ, IX_RSI, IX_ADX, IX_ATR};

    public final boolean reset;
    public final String name;
    public String type;

    public IndexModel(String name, boolean reset) {
        this.name = name;
        this.reset = reset;

        this.type = getType(name);
    }


    private String getType(String name) {
        switch (name) {
            case MAJUST:
                return "MA";
            case BOLLJUST:
                return "BOLL";
            default:
                return name;
        }
    }

}
